﻿using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;

namespace Workbench.Presentation
{
    class ProcessWordsVisibilityConverter : IMultiValueConverter
    {
        public object Convert(object[] values,
                                Type targetType,
                                object parameter,
                                CultureInfo culture)
        {
            var shouldHide = (bool)values[0] && (bool)values[1];
            
            return (shouldHide) ? Visibility.Collapsed : Visibility.Visible;
        }

        public object[] ConvertBack(object value,
                                    Type[] targetTypes,
                                    object parameter,
                                    CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
